<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.bluesky.dreamer.entity.LoginMessage"%>
<%
String path = request.getContextPath();
LoginMessage login=(LoginMessage)request.getSession().getAttribute("loginsession");
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="../../nresources/default/css/portalet.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=path %>/common/page/js/jquery.js"></script>
<script src="<%=path %>/common/My97DatePicker/WdatePicker.js" type="text/javascript" language="javascript"></script>
<SCRIPT LANGUAGE="JavaScript"> 
	function targetUpdate(){
		var websideName=$("#websideNameId").val(); //网点名称
		var cordiationHistory=$("#cordiationHistoryId").val(); //网点id
		var keyname=$("#keynameId").val(); //关键人信息
		if(websideName==''){
			alert("请输入网点名称!");
			$("#websideNameId").focus();
			return false;
		}else if(cordiationHistory==''){
			alert("请输入合作历史!");
			$("#cordiationHistoryId").focus();
			return false;
		}else if(keyname==''){
			alert("请输入关键人信息!");
			$("#keynameId").focus();
			return false;
		}
		$("#targetformId").submit();
	}
</SCRIPT>
</head>
<body>
<!-- 表单 Start -->
<DIV id="Operation_Table">
	<div class="title">
		<div class="titleleft">目标渠道-修改</div>
		<!-- 表单title -->
	</div>
	<!-- 表单title -->
	<!-- 表单内容 Start-->
	<div id="Info_table">
		<form action="targetchannel!update.do" name="targetform" id="targetformId" method="post">
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<th>网点名称:</th>
					<td>
					  <input type="text" name="websideName" id="websideNameId" width="70%" value="${model.websideName}" >
					  <input type="hidden" name="id" width="70%" value="${model.targetChannelId}" >
	               </td>
	               <th>合作历史:</th>
					<td>
					  <input type="text" name="cordiationHistory" id="cordiationHistoryId" width="70%" value="${model.cordiationHistory}">
	               </td>
				</tr>
				<tr>
					<th>关键人:</th>
					<td>
					  <input type="text" name="keyname" id="keynameId" width="70%" value="${model.keyname}">
	               </td>
	               <th>关键人角色:</th>
					<td>
					  <input type="text" name="keyrole" id="keyroleId" width="70%" value="${model.keyrole}">
	               </td>
				</tr>
				<tr>
					<th>渠道属性:</th>
					<td>
					  <input type="text" name="channelattr" width="70%" value="${model.channelattr}">
	               </td>
	               <th>地址:</th>
					<td>
					  <input type="text" name="address" width="70%" value="${model.address}">
	               </td>
				</tr>
				<tr>
					<th>区域:</th>
					<td>
					  <input type="text" name="area" width="70%" value="${model.area}">
	               </td>
	               <th>电话:</th>
					<td>
					  <input type="text" name="phone" width="70%" value="${model.phone}">
	               </td>
				</tr>
				<tr>
					<th>网点经营规模:</th>
					<td>
					  <input type="text" name="websidesize" width="70%" value="${model.websidesize}">
	               </td>
	               <th>经营时间:</th>
					<td>
					<input type="text" name="dealDate" id="dealDateId" value="${model.dealDate}" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyyMMdd'})"/>
	               </td>
				</tr>
				<tr>
					<th>网点店面大小:</th>
					<td>
					  <input type="text" name="websidearea" width="70%" value="${model.websidearea}">
	               </td>
	               <th>网点门头尺寸(长*高):</th>
					<td>
					  <input type="text" name="websidedoorsize" width="70%" value="${model.websidedoorsize}">
	               </td>
				</tr>
				<tr>
					<th>背贴内容:</th>
					<td>
					  <input type="text" name="backcontent" width="70%" value="${model.backcontent}">
	               </td>
	               <th>店面租金:</th>
					<td>
					  <input type="text" name="websiderant" width="70%" value="${model.websiderant}">
	               </td>
				</tr>
				<tr>
					<th>上月卡类总体销量:</th>
					<td>
					  移动:<input type="text" name="monthDealMobile" id="monthDealMobileId" width="70%" value="${model.monthDealMobile}">
	               </td>
	               <td>
					  联通:<input type="text" name="monthDealUnicom" id="monthDealUnicomId" width="70%" value="${model.monthDealUnicom}">
	               </td>
				</tr>
				<tr>
					<th>上月底库存量:</th>
					<td>
					  移动:<input type="text" name="monthStockMobile" id="monthStockMobileId" width="70%" value="${model.monthStockMobile}">
	               </td>
	               <td>
					  联通:<input type="text" name="monthStockUnicom" id="monthStockUnicomId" width="70%" value="${model.monthStockUnicom}">
	               </td>
	               <td>
					  3G:<input type="text" name="monthStock3g" id="monthStock3gId" width="70%" value="${model.monthStock3g}">
	               </td>
				</tr>
				<tr>
					<th>网点本月重要事件跟踪：</th>
					<td colspan="3"><textarea name="websideImportment" cols="45" rows="2">
						${model.websideImportment}
					</textarea>
				    (限定字数：1000)</td>
	            </tr>
				<tr>
					<th>备注：</th>
					<td colspan="3"><textarea name="remark" cols="45" rows="5">
					${model.remark}
					</textarea>
				    (限定字数：4000)</td>
	            </tr>
			</table>
		</form>
	</div>
	<TABLE width="100%" border="0" cellpadding="0" cellspacing="0">
		<!-- 按扭背景 start -->
		<tr>
		  <td width="30" align="center" id="footer">
		  	<input name="confirmButton" id="confirmButton" type="button" class="buttonStyle" value="提交" onclick="targetUpdate()">
		  </td>
		</tr>
		<!-- 按扭背景 end -->
	</table>
	<!-- 表单内容 End -->
</DIV>
</body>
</html>
